package com.itheima.demo;

public class Test2 {

    public static void main(String[] args) {
        A a = new B();
        a.a();
    }
}

abstract class A{
    public abstract void a();
}

class B extends A{

    @Override
    public void a() {
        System.out.println("chonxie");
    }
}
